//
//  CSTransitioningAnimator.h
//  AXFEightGroup
//
//  Created by ya on 1/2/17.
//  Copyright © 2017 ya. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^_Nullable AnimationBlockType)(id<UIViewControllerContextTransitioning> transitionContext);




@interface CSTransitioningAnimator : NSObject

@property (nonatomic, assign) NSTimeInterval animtionDuration; /// default is 0.25;

+ (instancetype)transitioningAnimatorWithPresentViewController:(UIViewController *)presentViewController;

- (instancetype)initWithPresentViewController:(UIViewController *)presentViewController;

- (void)presentedAnimator:(AnimationBlockType)pBlock
        dismissedAnimator:(AnimationBlockType)dBlock;

@end


@interface CSTransitioningAnimator (TransitioningDelegateMethods)<UIViewControllerTransitioningDelegate>@end

NS_ASSUME_NONNULL_END
